package com.allo2o.common.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.allo2o.common.domain.SequenceDO;
import com.allo2o.common.mapper.SequenceDOMapper;
import com.allo2o.common.service.ISequenceService;

@Service
public class SequenceServiceImpl implements ISequenceService {

    @Resource
    private SequenceDOMapper sequenceMapper;

    @Override
    public SequenceDO selectByPrimaryKey(Long sequenceId) {
        return sequenceMapper.selectByPrimaryKey(sequenceId);
    }

    @Override
    public int updateByPrimaryKeySelective(SequenceDO record) {
        return sequenceMapper.updateByPrimaryKey(record);
    }

    @Override
    public SequenceDO selectBySequenceName(String sequenceName) {
        return sequenceMapper.selectBySequenceName(sequenceName);
    }

    @Override
    public int updateByOldValue(SequenceDO sequenceDO, Long oldValue) {
        return sequenceMapper.updateByOldValue(sequenceDO, oldValue);
    }

}
